﻿@{
    ViewBag.Title = "Index";
    var imagePath = "";
    if (Request["photoChoice"] != null)
    {
        imagePath = @"images\" + Request["photoChoice"];
    } 
}

<form method="post" action="" > 
    <div align="center"> 
        I want to see: 
        <select name="photoChoice"> 
            <option value="Photo1.jpg">Photo 1</option> 
            <option value="Photo2.jpg">Photo 2</option> 
            <option value="Photo3.jpg">Photo 3</option> 
        </select> 
        &nbsp; 
        <input type="submit" value="Submit" /> 
    </div> 
    <div style="padding:10px;" align="center"> 
        @if(imagePath != ""){ 
            <img src="@imagePath" alt="Sample Image" width="600px"  /> 
        } 
    </div> 
    <div align="center">
        Spørgsmål: Du står i denne situation, hvad gør du?<br />
    </div>
    
    <div align="center">
        <form id="formSpg" action="Index">
            Dette er svarmulighed 1! <input name="svar" id="svar1" value="Dette er svarmulighed 1!" type="radio"/><br />
            Dette er svarmulighed 2! <input name="svar" id="svar2" value="Dette er svarmulighed 2!" type="radio"/><br />
            Dette er svarmulighed 3! <input name="svar" id="svar3" value="Dette er svarmulighed 3!" type="radio"/><br />
            Dette er svarmulighed 4! <input name="svar" id="svar4" value="Dette er svarmulighed 4!" type="radio"/><br />
        </form>
        </div>
    <div>
        <button type="button" style="float:left"> Afslut </button> <button type="button" style="float:right"> Svar </button> 
    </div>
</form> 


